package com.esiag.pdsteam.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;

import com.esiag.pdsteam.dao.InformationDao;
import com.esiag.pdsteam.entities.Information;

public class InformationServiceImpl implements InformationService{

	@Autowired
	InformationDao informationDao;
	public void setInformationDao(InformationDao informationDao) {
		this.informationDao=informationDao;
	}
	
	public List<Information> getAllInformation() {
		return informationDao.findAll();
	}

	
	public Information getById(Integer id) {
		return informationDao.findById(id);
		
	}

}
